09ef6021714336ebca32ecf094043932c24dae2f,core/src/main/java/com/orientechnologies/orient/core/storage/fs/OAbstractFile.java,OAbstractFile,openChannel,#number#,432

Before Change


    if (accessFile == null)
      throw new FileNotFoundException(osFile.getAbsolutePath());

    accessFile.setLength(iNewSize);
    accessFile.seek(0);
    channel = accessFile.getChannel();

After Change


    if (accessFile == null)
      throw new FileNotFoundException(osFile.getAbsolutePath());

    if (accessFile.length() != iNewSize)
      accessFile.setLength(iNewSize);

    accessFile.seek(0);
    channel = accessFile.getChannel();